package org.leumasjaffe.initiativeTracker.operator;

import java.io.FileNotFoundException;
import java.io.PrintStream;

import org.eclipse.jdt.annotation.NonNullByDefault;

/**
 * An abstract class to export character file data
 * @author Sam Jaffe
 *
 */
@NonNullByDefault
public abstract class CharacterExporter {

	/**
	 * 
	 * @param id
	 */
	public static void export(String id) {
		try (PrintStream out = new PrintStream(id + ".initiative")) {		
			out.println(new org.leumasjaffe.initiativeTracker.distributed.controller.UploadHandler().process("null", id));
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		}
	}
}
